home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Filing
/
s
/
GBPB10
< prev
next >
Wrap
Text File
|
1995-08-26
|
2KB
|
45 lines
; #### # # # #
; # # # # # The FreeWare C library for
; # # ## ### # # # # ### RISC OS machines
; # # # # # # # # # # # ___________________________________
; # # #### ### ## # # # #
; # # # # # # # # # # Please refer to the accompanying
; #### ### #### # # ##### # ### documentation for conditions of use
; ________________________________________________________________________
;
; File: Filing.s.GBPB10
; Author: Copyright © 1994, 1995 Sergio Monesi
; Version: 1.01 (6 Jun 1995)
; Purpose: Read directory entries
; Mods: 6 June 1995 - changed procedure name to a more
; DeskLib-compliant style
GET ^.h.regdefs
GET ^.h.swinos
GET ^.h.macros
; os_error *Filing_ReadDirEntry(char *dirname, void *buf,
; int *number, int *offset,
; int size, char *match);
PREAMBLE
STARTCODE Filing_ReadDirEntry
;
MOV ip, sp
STMFD sp!, {r2-r6,lr}
LDMIA ip, {r5,r6}
LDR r4, [r3]
LDR r3, [r2]
MOV r2, r1
MOV r1, r0
MOV r0, #10
SWI SWI_OS_GBPB + XOS_Bit
LDMVSFD sp!, {r2-r6,pc}^
MOV r0,#0
LDMFD sp, {r5,r6}
STR r3, [r5]
STR r4, [r6]
LDMFD sp!, {r2-r6,pc}^
;
END